package edu.hawaii.duedates.wicket;

import org.apache.wicket.markup.html.WebPage;
import edu.hawaii.duedates.DueDates;

/**
 * An abstract class of DueDates page.
 * 
 * @author Erin Kim
 */
public abstract class DueDatesPage extends WebPage {

  /** Support serialization. */
  private static final long serialVersionUID = 1L;

  /**
   * Returns the session instance associated with the current user.
   * 
   * @return The StackSession.
   */
  public DueDatesSession getStackSession() {
    return (DueDatesSession) getSession();
  }

  /**
   * Returns the duedate object.
   * 
   * @return The duedate
   */
  public DueDates getDueDate() {
    return DueDatesApplication.get().getDueDate();
  }

}
